package com.shop.cloud.model.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author Alex
 */
@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler",
		"fieldHandler" }, ignoreUnknown = true)
public class GetInfundListRequest extends RestfulRequest {

	private static final long serialVersionUID = -3286520204644035655L;

	public static final int SEARCH_TYPE_TRADER_USER_ID = 1; // 搜索交易人ID
	public static final int SEARCH_TYPE_TRADER_NICKNAME = 2; // 搜索交易人昵称

	@JsonProperty("searchType")
	@ApiModelProperty(value = "搜索方式，1搜索交易人ID，2搜索交易人昵称", example = "", required = false)
	private int searchType;

	@JsonProperty("keyword")
	@ApiModelProperty(value = "搜索关键词", example = "", required = false)
	private String key;

	@JsonProperty("startTime")
	@ApiModelProperty(value = "开始时间,格式：YYYY-MM-dd hh:mm:ss", example = "", required = false)
	private String start_time;

	@JsonProperty("endTime")
	@ApiModelProperty(value = "结束时间,格式：YYYY-MM-dd hh:mm:ss", example = "", required = false)
	private String end_time;

	@JsonProperty("userId")
	@ApiModelProperty(value = "交易人id", example = "", required = false)
	private Integer userId;

	@JsonProperty("nickName")
	@ApiModelProperty(value = "交易人昵称", example = "", required = false)
	private String nickName;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public int getSearchType() {
		return searchType;
	}

	public void setSearchType(int searchType) {
		this.searchType = searchType;
	}

	public String getStart_time() {
		return start_time;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public String getEnd_time() {
		return end_time;
	}

	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
}
